package com.example.reservationbilliards.config;

import com.example.reservationbilliards.pojo.CourseStrategy;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.List;

@Configuration
public class CourseStrategyConfig {

    @Bean
    @ConfigurationProperties(prefix = "course.strategy")
    public CourseStrategy courseStrategy() {
        return new CourseStrategy(List.of("11:00-13:00", "17:00-20:00"), "台球");
    }
}